// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取操作日志 POST /api/logs/${param0}/${param1}/operate */
export async function postApiLogsByIndexByLimitOperate(
  params: {
    // query
    starttime?: string;
    endtime?: string;
    // path
    index: number;
    limit: number;
  },
  body: string[],
  options?: { [key: string]: any },
) {
  const { index: param0, limit: param1, ...queryParams } = params;
  return request<API.SimpleResultPagingListOperateLogDto>(`/api/logs/${param0}/${param1}/operate`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    params: {
      ...queryParams,
    },
    data: body,
    ...(options || {}),
  });
}
